using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class employer_EmpAccounts : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //ViewState["Company_Id"] = CompanyId;
            FillJobPost();
        }


    }

    private void FillJobPost()
    {

         int CompanyId = 0;
         JobSiteStarterKit.BOL.Company company = JobSiteStarterKit.BOL.Company.GetCompany(Context.User.Identity.Name);
         CompanyId = company.CompanyID;
           

        JobSiteStarterKit.DAL.DBAccess obj = new JobSiteStarterKit.DAL.DBAccess();
        obj.AddParameter("@CompanyID", CompanyId);
        DataSet dset = obj.ExecuteDataSet("Proc_GetJobPost");
        grdProject.DataSource = dset.Tables[0];
        grdProject.DataBind();

    }


}
